﻿using System.Collections.Generic;
using Yun.Interface;
using Yun.Response;

namespace Yun.Open.Request
{
    /// <summary>
    /// API接口关联分类请求
    /// yun.open.api.category.matching
    /// </summary>
    public class ApiMatchingCategoryRequest :ITopRequest<IntResultResponse>
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        public int CategoryId { get; set; }


        /// <summary>
        /// ApiID
        /// </summary>
        public int ApiId { get; set; }

        public string GetApiName()
        {
            return "yun.open.api.category.matching";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"categoryid", CategoryId},
                {"apiid", ApiId}
            };
            return parameters;
        }

        public void Validate()
        {
        }
    }
}
